10-3 添加一条学生记录
Score 2
Author 张庆
Organization 集美大学

本题目要求编写 Insert语句,在stu表中添加一条学生记录:

学号:S012,姓名:周强,性别:1,其它属性为NULL.

表结构:

请在这里写定义表结构的SQL语句。例如:

CREATE TABLE `stu` (
`sno` char(4) NOT NULL,
`sname` char(8) NOT NULL,
`sex` tinyint(1) DEFAULT NULL,
`mno` char(2) DEFAULT NULL,
`birdate` datetime DEFAULT NULL,
`memo` text,
PRIMARY KEY (`sno`)
);

表样例

请在这里给出上述表结构对应的表样例。例如

stu表:

stu.JPG

输出样例:

插入一条学生记录后,stu表如下:

1.JPG

Code Size Limit
16 KB
Time Limit
400 ms
SQL Dialect
MySQL
Result Comparison
Order-sensitive
Create Table Statements
Result Table Definition
SQL (SQL)
INSERT INTO stu(sno, sname, sex)
VALUES('S012', '周强', 1)